package org.fanrui.hrm.dto;

import lombok.*;
import org.fanrui.hrm.domain.Employee;
import org.fanrui.hrm.domain.Login;
import org.fanrui.hrm.domain.Tenant;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 机构注册参数
 *
 * @author fanrui
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TenantRegisterDto {
    /**
     * 员工信息
     */
    @Valid
    private Employee employee;

    /**
     * 机构信息
     */
    @Valid
    private Tenant tenant;

    /**
     * 登录信息
     */
    @Valid
    private Login login;

    /**
     * 套餐的id
     */
    @NotNull(message = "套餐id不能为空")
    private Long mealId;
}
